// export default () => null
import React from 'react'
import { Icon, Spin } from 'antd'
//组件加载
const loadingStyle = {
  position: 'fixed',
  top: '50%',
  bottom: 0,
  left: 0,
  right: 0,
  margin: 'auto'
}
const loading = () => (
  <Spin tip="Loading..." style={loadingStyle}>
    {/* <Alert
      message="Alert message title"
      description="Further details about the context of this alert."
      type="info"
    /> */}
  </Spin>
)
//数据请求加载
const antIcon = <Icon type="loading" style={{ fontSize: 40 }} spin />

export { loading, antIcon }
